<include file="Public:header" />
<div class="container main">
    <include file="Public:left" />
    <div class="w790">
        <script>
  	function uploaded(path){
		$("#img_url").attr("src",'__PUBLIC__'+path);
		$("input[name='img_url']").val(path);
	}
	function del_img(){
		if(confirm('您确定要删除图片吗?')){
			var file=$("input[name='img_url']").val();
			$.post("{:U('delImgBypath')}",{'path':file},function(data){
				$("input[name='img_url']").val('');
				$("#img_url").attr('src','');
			});
		}else{
			return false;
		}
	}
	//切换栏目方式
	function parseCateType(e){
		if($(e).val()==1){
			$('#pagesize').show();
		}else{
			$('#pagesize').hide();
		}
	}
	function after(e){
	    $(e).parent().parent().parent().parent().parent('li').after($(e).parent().parent().parent().parent().parent('li').prev());
    }
    function append(e){
	    $(e).parent().parent().parent().parent().parent('li').next().after($(e).parent().parent().parent().parent().parent('li'));
    }
	function delnews(e){
		$(e).parent().parent().parent().parent().parent().remove();
	}
	function addnews(){
		var html = $('#copyHTML').html();
		$(html).appendTo('#replyList ul');
	}
	
	
	function getExtends(e){
		var v = $('#extendsList'+$(e).val()).val();
		$('#extends').val(v);
	}
  </script>
        <style>
  	#replyList ul li{margin-top:5px; background:#eee; padding:8px; width:700px;}
	.delnews{display:block; width:30px; font-size:20px; height:30px; border-radius:15px; background:#f00; color:#fff; line-height:30px; text-align:center;}
  </style>
        <div class="h">
            <a href="{:U('index')}" class="btn btn-info">
                <i class="glyphicon glyphicon-circle-arrow-left"></i> 返回积分管理
            </a>
        </div>
        <form class="checkoutform1 form-horizontal" action="" method="post" enctype="multipart/form-data">
            <div class="table_ container">
                <div class="form-group">
                    <label class="col-sm-2 control-label">积分库名称（类名）</label>
                    <div class="col-sm-10">
                        <select class="form-control" datatype="*" name="typename" >
                            <option value="">请选择</option>
                            <volist name="Integrals" id="vo">
                                <option value="{$vo.value}">{$vo.title}</option>
                            </volist>
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">积分名称</label>
                    <div class="col-sm-10">
                        <input class="form-control" datatype="*" value="{$info.title}" name="remark" type="text" placeholder="设置积分名称">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">返回比例</label>
                    <div class="col-sm-10">
                        <input class="form-control" datatype="*"  name="typeratio" type="text" placeholder="设置返还比例,例如0.5">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">目标转换比例（目标）</label>
                    <div class="col-sm-10">
                        <select class="form-control" datatype="*" name="aimtype" >
                            <option value="">请选择</option>
                            <volist name="Integrals" id="vo">
                                <option value="{$vo.value}">{$vo.title}</option>
                            </volist>
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">目标转换比例（比例）</label>
                    <div class="col-sm-10">
                        <input class="form-control" datatype="*"  name="aimratio" type="text" placeholder="设置转换比例,例如0.5">
                    </div>
                </div>
            </div>
            <div class="pages">
                <button type="submit" class="btn btn-success">保存</button>
            </div>
        </form>
    </div>
    <script>
$(".checkoutform1").Validform();
 </script>
    <div class="clear">
    </div>
</div>
</body></html>